<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class GoodImage extends Model
{
    //
    public function goods()
    {
        return $this->belongsTo("\App\Goods");
    }

    public function banner()
    {
        return self::where("is_banner",1)->get();
    }


}
